<?php

$dd= mysqli_connect('127.0.0.1', 'root', '', 'db_bbs', 3306)
        or die("连接错误，出错信息是".mysqli_connect_error());
$dd->query("set names utf8");
$cc="select * from db_smp";

$sql="select * from db_smp";
$result=$dd->query($sql);
$num=$result->num_rows;

$rows=$result->fetch_all(MYSQLI_BOTH);
require 'index_list.php';